package com.liam.chinesevietnamesecorpus.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.liam.chinesevietnamesecorpus.common.BaseEntity;
import lombok.Getter;
import lombok.Setter;

/**
 * 语料实体类
 * 
 * @author Liam
 */
@TableName("corpus_item")
@Getter
@Setter
public class CorpusItem extends BaseEntity {

    /**
     * 语料ID
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 所属语料库ID
     */
    private Long libraryId;

    /**
     * 源文本
     */
    private String sourceText;

    /**
     * 目标文本
     */
    private String targetText;

    /**
     * 状态
     */
    private String status;
}
